package com.mz.controller;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.mz.common.dto.PaginationVo;
import com.mz.common.dto.R;
import com.mz.common.utils.PageDataHandlerUtils;
import com.mz.entity.OmsOrderInfo;
import com.mz.entity.vo.UmsRoleInfoQuery;
import com.mz.service.OmsOrderInfoService;
import com.mz.service.UmsRoleInfoService;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;
import java.io.Serializable;
import java.util.List;

/**
 * (OmsOrderInfo)表控制层
 *
 * @author makejava
 * @since 2023-12-13 13:38:30
 */
@RestController
@RequestMapping("omsOrderInfo")
public class OmsOrderInfoController  {
    /**
     * 服务对象
     */
    @Resource
    private OmsOrderInfoService umsOrderInfoService;

    /**
     * 分页查询所有数据
     * @return 所有数据
     */
    @GetMapping("/pagination")
    public R getUserPagination(PaginationVo paginationVo ) throws Exception {
        return null;
    }

    /**
     * 通过主键查询单条数据
     *
     * @param id 主键
     * @return 单条数据
     */
    @GetMapping("{id}")
    public R selectOne(@PathVariable Serializable id) {
        return null; //successsuccess(this.omsOrderInfoService.getById(id));
    }

    /**
     * 新增数据
     *
     * @param omsOrderInfo 实体对象
     * @return 新增结果
     */
    @PostMapping
    public R insert(@RequestBody OmsOrderInfo omsOrderInfo) {
        return null; //successsuccess(this.omsOrderInfoService.save(omsOrderInfo));
    }

    /**
     * 修改数据
     *
     * @param omsOrderInfo 实体对象
     * @return 修改结果
     */
    @PutMapping
    public R update(@RequestBody OmsOrderInfo omsOrderInfo) {
        return null; //successsuccess(this.omsOrderInfoService.updateById(omsOrderInfo));
    }

    /**
     * 删除数据
     *
     * @param idList 主键结合
     * @return 删除结果
     */
    @DeleteMapping
    public R delete(@RequestParam("idList") List<Long> idList) {
        return null; //successsuccess(this.omsOrderInfoService.removeByIds(idList));
    }
}

